<template>
	<view class="content">
		<image class="logo" src="/static/logo.png" />
		<view class="text-area" @click="dianji">
			<text class="title">{{ title }}</text>
		</view>
	</view>
</template>

<script setup lang="ts">
	import type { ConfigVO } from '@/types/ConfigVo1';
	import {getCeshi,jeecgCeshi} from '@/api/ceshi_api'
	
	//const {proxy} = getCurrentInstance() as ComponentInternalInstance;
	const {proxy} = getCurrentInstance() as any;


	const title = ref("HHHHH");
	//const title = refaa("qew");
	const reactiveaa = reactive<ConfigVO>({
		configName: 'aa' 
	})

	const dianji = () => {
		let oom = {
			name:'aaa',
			age:15,
			birthday:'2024-10-17',
			
		}
		jeecgCeshi(oom).then(res=>{
			console.log(res);
			proxy?.$modal.msg(res.message);
		})
		
		// getCeshi().then(res=>{
		// 	console.log('返回结果是：',res);
		// });
		
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>